iOS 6 Application Development For Dummies by Goldstein Neal & Wilson Dave
Author:Goldstein, Neal & Wilson, Dave [Goldstein, Neal]
Language: eng
Format: mobi
Publisher: For Dummies
Published: 2013-01-09T16:00:00+00:00
Figure 9-10: The Target-Action mechanism.
You set a control’s action and target using Interface Builder. You get to specify what method — in which object — should respond to a control without having to write any code.
You can also change the target and action dynamically by sending the control or its cell setTarget: and setAction: messages.
Action methods have a certain signature (format, in other words):
- (IBAction)testDrive:(id)sender;
The type qualifier IBAction, which is used in place of the void return type, flags the declared method as an action so that Interface Builder is aware of it. (This is similar to the IBOutlet tag, used in the “Creating the outlet” section, earlier in this chapter.) And just as with outlets, you can actually make the connections in the Interface Builder editor, and Xcode will generate the necessary code for you.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Exploring Deepfakes by Bryan Lyon and Matt Tora(7587)
Robo-Advisor with Python by Aki Ranin(7476)
Offensive Shellcode from Scratch by Rishalin Pillay(6032)
Ego Is the Enemy by Ryan Holiday(4924)
Microsoft 365 and SharePoint Online Cookbook by Gaurav Mahajan Sudeep Ghatak Nate Chamberlain Scott Brewster(4877)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4431)
Python for ArcGIS Pro by Silas Toms Bill Parker(4108)
Elevating React Web Development with Gatsby by Samuel Larsen-Disney(3813)
Machine Learning at Scale with H2O by Gregory Keys | David Whiting(3532)
Learning C# by Developing Games with Unity 2021 by Harrison Ferrone(3275)
Speed Up Your Python with Rust by Maxwell Flitton(3225)
Liar's Poker by Michael Lewis(3207)
OPNsense Beginner to Professional by Julio Cesar Bueno de Camargo(3188)
Extreme DAX by Michiel Rozema & Henk Vlootman(3165)
Agile Security Operations by Hinne Hettema(3114)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic and Jasmin Redzepagic(3105)
Essential Cryptography for JavaScript Developers by Alessandro Segala(3080)
Cryptography Algorithms by Massimo Bertaccini(2998)
AI-Powered Commerce by Andy Pandharikar & Frederik Bussler(2977)
